<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	 xmlns:ui="http://java.sun.com/jsf/facelets"
	 xmlns:f="http://java.sun.com/jsf/core"
	 xmlns:h="http://java.sun.com/jsf/html"
	 xmlns:a4j="http://richfaces.org/a4j"
	 xmlns:rich="http://richfaces.org/rich"
	 xmlns:c="http://java.sun.com/jsp/jstl/core">

	<rich:popupPanel id="formPanel" modal="true" resizeable="false" 
		autosized="false">
		<!-- 过程提示 -->
		<a4j:outputPanel layout="block" title="返回" onclick="onion.faces.formPanel.hide();" styleClass="closeButton" rendered="true"/>
		<!-- 引用文件 -->
		<a4j:outputPanel layout="block" id="formPanelInclude" styleClass="modalPanelContent">
			<ui:include src="#{formPanel.view}" />
			<a4j:outputPanel layout="block" styleClass="contentLoading" rendered="#{formPanel.view eq '/faces/blank.xhtml'}">正在加载...</a4j:outputPanel>
			<div class="clear" />
			<script>
				if(#{formPanel.closeOnError and not faces.tools.success})
					onion.faces.formPanel.hideBecauseError = true;
	
				if(#{formPanel.view ne '/faces/blank.xhtml'})
					onion.faces.formPanel.onrefresh("formPanelInclude");
			</script>
		</a4j:outputPanel>
	</rich:popupPanel>
</ui:composition>